package com.xiaotu.code.model.quene;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * MQ队列设置映射.
 * 
 * @author liqinghua
 * 
 */
@Entity
@Table(name = "SETTING_MQ_QUENE")
public class SettingMqQuene implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3624249772227765538L;

	private Long id;
	// MQ队列名称
	private String name;
	// 接收的节点，以","号分隔
	private String listenNodes;
	// 被监听的节点，以","号分隔
	private String sendNodes;
	// 是否运行0不运行1运行
	private Boolean enabled;
	// 是否允许自己发送给自己
	private Boolean enabledLocal;
	// 描述
	private String descript;

	@Id
	@Column(name = "SETTING_ID")
	public Long getId() {
		return id;
	}

	@Column(name = "QUENE_NAME")
	public String getName() {
		return name;
	}

	@Column(name = "LISTEN_NODES")
	public String getListenNodes() {
		return listenNodes;
	}

	@Column(name = "SEND_NODES")
	public String getSendNodes() {
		return sendNodes;
	}

	@Column(name = "ENABLED")
	public Boolean getEnabled() {
		return enabled;
	}

	@Column(name = "DESCRIPT")
	public String getDescript() {
		return descript;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setListenNodes(String listenNodes) {
		this.listenNodes = listenNodes;
	}

	public void setSendNodes(String sendNodes) {
		this.sendNodes = sendNodes;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public void setDescript(String descript) {
		this.descript = descript;
	}

	@Column(name = "ENABLED_LOCAL")
	public Boolean getEnabledLocal() {
		return enabledLocal;
	}

	public void setEnabledLocal(Boolean enabledLocal) {
		this.enabledLocal = enabledLocal;
	}

}
